/**
 * Created by zch on 2017/6/13.
 */
const Header = resolve => {
    require.ensure(['components/Header.vue'], () => {
        resolve(require('components/Header.vue'));
    }, 'Home');
};

const dlHome = resolve => {
    require.ensure(['./../components/dl/dlHome.vue'], () => {
        resolve(require('./../components/dl/dlHome.vue'));
    }, 'dlHome');
};

//代练个人中心-我是打手进行中订单详情
const DlDsTransaction = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlDsTransaction.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlDsTransaction.vue'));
    }, 'dlHome');
};
//代练个人中心-我是打手进行中订单申诉
const DlBuyerAppeal = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlBuyerAppeal.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlBuyerAppeal.vue'));
    }, 'dlHome');
};
//代练中心
const DlMyCenter = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlMyCenter.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlMyCenter.vue'));
    }, 'dlHome');
};
//代练我是打手中心
const DlDaShou = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlDaShou.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlDaShou.vue'));
    }, 'dlHome');
};
//代练我是玩家
const DlSeller = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlSeller.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlSeller.vue'));
    }, 'dlHome');
};
//代练我的店铺
const DlMyStore = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlMyStore.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlMyStore.vue'));
    }, 'dlHome');
};
//代练我发布的编辑
const DlEdit = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlEdit.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlEdit.vue'));
    }, 'dlHome');
};
//我的店铺发布
const DlMyStorePublish = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlMyStorePublish.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlMyStorePublish.vue'));
    }, 'dlHome');
};
//我的店铺退款
const DlreFund = resolve => {
    require.ensure(['./../components/dl/DlMembers/DlreFund.vue'], () => {
        resolve(require('./../components/dl/DlMembers/DlreFund.vue'));
    }, 'dlHome');
};
//发布页面
const DlPublishMsg = resolve => {
    require.ensure(['./../components/dl/DlMeal/DlPublishMsg.vue'], () => {
        resolve(require('./../components/dl/DlMeal/DlPublishMsg.vue'));
    }, 'dlHome');
};
//代练陪练支付页
const OrderFee = resolve => {
    require.ensure(['./../components/dl/OrderFee.vue'], () => {
        resolve(require('./../components/dl/OrderFee.vue'));
    }, 'dlHome');
};
//王者代练
const DlWzry = resolve => {
    require.ensure(['./../components/dl/DlStore/DlWzry.vue'], () => {
        resolve(require('./../components/dl/DlStore/DlWzry.vue'));
    }, 'dlHome');
};
//王者代练下单页
const DlWzOrForm = resolve => {
    require.ensure(['./../components/dl/DlStore/DlWzOrForm.vue'], () => {
        resolve(require('./../components/dl/DlStore/DlWzOrForm.vue'));
    }, 'dlHome');
};

export const dl = {
    path: '/vue/dl',
    components: {
        default: dlHome,
    },
    children: [
        //代练打手进行中订单
        {
            path: 'member/dl-ds-transaction',
            name: "DlDsTransaction",
            components: {
                default: DlDsTransaction,
                'dl-header': Header
            },
        },
        //代练中心
        {
            path: 'member/dl-my-center',
            name: "DlMyCenter",
            components: {
                default: DlMyCenter,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
        //代练我是打手订单列表
        {
            path: 'member/dl-my-dashou/:state',
            name: "DlDaShou",
            components: {
                default: DlDaShou,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
        //申诉
        {
            path: 'member/dl-buyer-appeal',
            name: "DlBuyerAppeal",
            components: {
                default: DlBuyerAppeal,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
        //代练我是玩家列表
        {
            path: 'member/dl-my-seller/:state',
            name: "DlSeller",
            components: {
                default: DlSeller,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
        //代练我的店铺
        {
            path: 'member/dl-my-store/:state',
            name: "DlMyStore",
            components: {
                default: DlMyStore,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}

        },
        //代练我的店铺
        {
            path: 'member/dl-edit',
            name: "DlEdit",
            components: {
                default: DlEdit,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
        //我的店铺发布
        {
            path: 'member/dl-store-publish',
            name: "DlMyStorePublish",
            components: {
                default: DlMyStorePublish,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
        //我的店铺我要退款
        {
            path: 'member/dl-store-refund',
            name: "DlreFund",
            components: {
                default: DlreFund,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
        //提供账号信心给打手
        {
            path: 'member/dl-publish-msg',
            name: "DlPublishMsg",
            components: {
                default: DlPublishMsg,
                'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
        {
            path: 'order-fee',
            name: "OrderFee",
            components: {
                default: OrderFee,
                'dl-header': Header
            },
            //meta: {isPublish: true, requireAuth: true}
        },
        {
            path: 'dl-wzry',
            name: "DlWzry",
            components: {
                default: DlWzry,
                //'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: false}
        },
        {
            path: 'dlwz-orform/:dwStart/:dwEnd/:dwQ/:dwZ',
            name: "DlWzOrForm",
            components: {
                default: DlWzOrForm,
                //'dl-header': Header
            },
            meta: {isPublish: true, requireAuth: true}
        },
    ],
    meta: {isPublish: true, requireAuth: false}
}